How to find first element of array matching a boolean condition in JavaScript

welcome to shbcf.ru